-- GENERATED SPELL FOR [Ambereye Reaver] --


function spell0_11786(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11786', 595, 1)
end

function spell1_11786(pUnit, Event) --@Petrify,n/a--
pUnit:FullCastSpellOnTarget(11020,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11786', 8346, 1)
end

function Sorts_11786(pUnit, Event)
local choix_sorts_11786 = math.random(0, 1)
if choix_sorts_11786 == 0 then
pUnit:RegisterEvent('spell0_11786', 1, 1)
end
if choix_sorts_11786 == 1 then
pUnit:RegisterEvent('spell1_11786', 1, 1)
end
end

function mob11786_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11786', math.random(1500, 3000), 1)
end

function mob11786_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11786_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11786_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11786, 1, 'mob11786_Action')
RegisterUnitEvent(11786, 2, 'mob11786_Leave')
RegisterUnitEvent(11786, 3, 'mob11786_Kill')
RegisterUnitEvent(11786, 4, 'mob11786_Die')
